From: Jim Blandy Date: Mon, 24 May 1993 16:18:33 +0000 (+0000) Subject: * make-dist: When breaking links, remove the link before moving X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96038 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=e94817d7cd4406765f6a2728ddbaf16ed7e0dac4;p=emacs.git * make-dist: When breaking links, remove the link before moving the copy onto it, to avoid interactive behavior. --- diff --git a/make-dist b/make-dist index 09211d6239b..ac2bd91b0f1 100755 --- a/make-dist +++ b/make-dist @@ -281,7 +281,8 @@ done #### actually we just re-copy anything with a link count greater #### than two. echo "Breaking intra-tree links." -find ${tempdir} ! -type d -links +2 -exec cp {} $$ \; -exec mv $$ {} \; +find ${tempdir} ! -type d -links +2 \ + -exec cp {} $$ \; -exec rm -f {} \; -exec mv $$ {} \; if [ "${newer}" ]; then echo "Removing files older than $newer."